import junit.framework.*;
public class CalcTest extends TestCase{
	
	private Calc calc = null ;

	public CalcTest(){}

	public CalcTest(String name){
		super(name);
	}

	public void setUp(){
		calc = new Calc();
	}

	public void tearDown(){
		calc = null ;
	}

	public void testAdd(){
		int result = calc.add(3,5);	
		assertEquals(8,result);
	}

	public void testMinuts(){
		int result = calc.minuts(19,3);
		assertEquals(16,result);
	}

	public static Test suite(){
		TestSuite suite = new TestSuite();
		suite.addTest(new CalcTest("testAdd"));
		suite.addTestSuite(CalcTest.class);
		return suite;
	}
}
